-- GENERATED SPELL FOR [Necrolord Horus] --


function spell0_27805(pUnit, Event) --@Curse of Impotence,n/a--
pUnit:FullCastSpellOnTarget(51340,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27805', 15322, 1)
end

function spell1_27805(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20298,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27805', 3000, 1)
end

function Sorts_27805(pUnit, Event)
local choix_sorts_27805 = math.random(0, 1)
if choix_sorts_27805 == 0 then
pUnit:RegisterEvent('spell0_27805', 1, 1)
end
if choix_sorts_27805 == 1 then
pUnit:RegisterEvent('spell1_27805', 1, 1)
end
end

function mob27805_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27805', math.random(1500, 3000), 1)
end

function mob27805_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27805_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27805_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27805, 1, 'mob27805_Action')
RegisterUnitEvent(27805, 2, 'mob27805_Leave')
RegisterUnitEvent(27805, 3, 'mob27805_Kill')
RegisterUnitEvent(27805, 4, 'mob27805_Die')
